package com.woniuxy.yuekeuser.dao;

import com.woniuxy.yuekeuser.model.HotelCar;
import org.springframework.data.elasticsearch.annotations.Query;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface ElasticMapper extends ElasticsearchRepository<HotelCar,Integer> {

    @Query("{\"bool\": {\"should\": [{\"match\": {\"hotelCarWords\": \"?0\"}}]}}")
    List<HotelCar> searchByKeyWords(String kw);

}
